# define a individual object
# 
# Author: guochun
###############################################################################

#' @param name the species name of an individual
#' @param  x the x location of an individual
#' @param  y the y location of an individual
#' @return an 'individual' object
#' @example ind = individual("sp",5,2)

individual=function(name,x=NA,y=NA){
id=name;
attr(id,"xy")=c(x,y)
class(id)="individual"
return(id)
}
